export default url => {
  const getList = (id,type,parentId) => window.$axios({
      url: `${url}/${id}/${parentId}/${type}`,
      method: 'get'
  })
  
  const save = (id,data) => window.$axios({
      url: `${url}/${id}`,
      method: 'post',
      data:data
  })
  
  return {
      getList,
      save
  }
}